﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ModulesPage.Master" AutoEventWireup="true" CodeBehind="SingleUserUpdate.aspx.cs" Inherits="SwenAssignment3.UserCreationModule.SingleUserUpdate" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1
        {
            width: 676px;
        }
        .auto-style2
        {
            text-decoration: underline;
        }
        .auto-style3
        {
            width: 222px;
        }
        .auto-style4
        {
            width: 222px;
            height: 24px;
        }
        .auto-style5
        {
            width: 676px;
            height: 24px;
        }
        .auto-style6
        {
            width: 222px;
            height: 21px;
        }
        .auto-style7
        {
            width: 676px;
            height: 21px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <br />
    <span class="auto-style2"><strong>Single User Update</strong></span><br />
    <table class="auto-style1">
        <tr>
            <td class="auto-style3">Username:</td>
            <td class="auto-style1">
                <asp:Label ID="lblUsername" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="auto-style3">Old Password:</td>
            <td class="auto-style1">
                <asp:TextBox ID="tbxOldPassword" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="auto-style3">Password:</td>
            <td class="auto-style1">
                <asp:TextBox ID="tbxPassword" runat="server" TextMode="Password"></asp:TextBox>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxPassword" ErrorMessage="Please type in your password" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style3">Retype New&nbsp; Password:</td>
            <td class="auto-style1">
                <asp:TextBox ID="tbxRetypePassword" runat="server" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="tbxRetypePassword" ControlToValidate="tbxPassword" ErrorMessage="CompareValidator" ForeColor="Red">Please enter the same password</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style6">Staff ID:</td>
            <td class="auto-style7">
                <asp:Label ID="lblStaffID" runat="server" Text="lblStaffID"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="auto-style4">Access Rights:</td>
            <td class="auto-style5">
                <asp:Label ID="lblaccessRight" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="auto-style3">Secret Question:</td>
            <td class="auto-style1">
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem>What is your mother maiden name?</asp:ListItem>
                    <asp:ListItem>What is your first pet name?</asp:ListItem>
                    <asp:ListItem>Which hospital are you birth in?</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="auto-style3">Secret Answer:</td>
            <td class="auto-style1">
                <asp:TextBox ID="tbxSA" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="auto-style3">&nbsp;</td>
            <td class="auto-style1">
                <br />
                <asp:ImageButton ID="btnEnter" runat="server" Height="54px" Width="93px" ImageUrl="~/Pictures/EnterButton1.png" OnClick="btnCreate_Click"/>
                <asp:ImageButton ID="btnCancel" runat="server" Height="55px" Width="111px" ImageUrl="~/Pictures/BackButton1.png" OnClick="btnCancel_Click" OnClientClick="history.back()"/>
                <br />
            </td>
        </tr>
    </table>
</asp:Content>
